package com.xxx.corejava.day1209;

public class Test1 {
    public static void main(String[] args) {

        Person baby=new Baby("abc");

        baby.move();

        Plain plain=new Plain();

        baby.move(plain);

        Train train=new Train();

        baby.move(train);

    }
}
